import VueI18n from 'vue-i18n'
import Vue from 'vue'
import enLocale from './lang/en'
import zhLocale from './lang/cn'
Vue.use(VueI18n)

const i18n = new VueI18n({
    locale: 'zh-CN',    // 语言标识
    messages: {
        'zh-CN': Object.assign(zhLocale, {}),
        'en-US': Object.assign(enLocale, {})
    },
    silentTranslationWarn: true
})

export default i18n
